package com.only4play.portal.cp.bean.outbuilder.outjsonbuilder;

import com.only4play.portal.cp.bean.message.jsonmessage.CpJsonMessage;
import com.only4play.portal.cp.bean.message.jsonmessage.CpJsonOutMessage;
import com.only4play.portal.cp.bean.message.jsonmessage.CpJsonOutTextMessage;
import com.only4play.portal.cp.bean.outbuilder.outxmlbuilder.XmlTextBuilder;

public final class JsonTextBuilder extends JsonBaseBuilder<JsonTextBuilder, CpJsonOutMessage> {

    private String content;

    public JsonTextBuilder content() {
        this.content = content;
        return this;
    }

    @Override
    public CpJsonOutMessage build() {
        CpJsonOutTextMessage msg = new CpJsonOutTextMessage();
        setCommon(msg);
        msg.setContent(this.content);
        return msg;
    }
}
